<?php
error_reporting(0);
function xiaocurl($url,$postdata) {
    $ch = curl_init();
    
    curl_setopt($ch, CURLOPT_URL,$url); 
    curl_setopt($ch, CURLOPT_POST, true); 
    curl_setopt($ch, CURLOPT_POSTFIELDS,$postdata); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); 
    
    $response = curl_exec($ch);
    
    if (curl_errno($ch)) {

        return 'cURL error: ' . curl_error($ch);
    } else {

        return $response;
    }

    curl_close($ch);
}
?>